package com.c.repository;

import com.c.pojo.entity.Answer;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author bysun
 */
public interface AnswerRepository extends JpaRepository<Answer, Integer> {


    /**
     * 根据账户id获取回复信息
     *
     * @param accountId
     * @return
     */
    Answer getAnswerByAccountId(Integer accountId);

    /**
     * 根据账户account_id获取回复信息
     *
     * @param accountId
     * @return
     */
    Answer getAnswerByAccountAccountId(String accountId);
}
